require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('animate.css')
require('../css/advert.less')

window.addEventListener('DOMContentLoaded',function(){
    // 获取时间
    const countdown=document.querySelector('#countdown')

    // 倒计时
    let times=5
    let timeId=setInterval(function(){
        --times;
        if(times<=0){
            clearInterval(timeId)
            location.href='./login.html'
        }else{
            countdown.textContent=times+'s'
        }
    },1000)
})